package cn.lyn4ever.order.mapper;

import cn.lyn4ever.entity.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * (Orders)表数据库访问层
 *
 * @author lyn4ever
 * @since 2020-04-11 21:47:29
 */
@Repository
public interface OrdersMapper extends BaseMapper<Orders> {

    /**
     * 获取单个用户的各个状的订单统计
     * @param userid
     * @return
     */
    Map<String, Integer> getCountById(Integer userid);
}